/**
 * 
 */
package com.lion.jacoco.util;

/**
 * EnvUtil.java. 2011-12-7下午4:15:12 @author LionBule.
 */
public class EnvUtil {
    private static boolean windows = false;
    private static boolean linux   = false;

    static{
        String osname = System.getProperty("os.name");
        if (osname.startsWith("Windows")) {
            windows = true;
        } else if (osname.startsWith("Linux")) {
            linux = true;
        }
    }

    public static boolean isWindows() {
        return windows;
    }

    public static boolean isLinux() {
        return linux;
    }

}
